<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>

</head>
<body>
	<table border="1px">
		<tr>
			<td>id</td>
			<td>姓名</td>
			<td>性别</td>
			<td>年龄</td>
			<td>操作</td>
		</tr>
		<?php foreach ($arr as $k => $v) { ?>
			<tr <?php if ($k==1){echo 'bgcolor="red"';} ?>>	
			<td><?php echo $k; ?></td>
			<td><?php echo $v['name']; ?></td>
			<td><?php echo $v['age']; ?></td>
			<td><?php echo $v['like']; ?></td>
			<td><a href="./index.php?p=<?php echo $k ?>">
			详情</a></td>
			</tr>
		<?php } ?>
		
		
		
	</table>
</body>
</html>